package com.mxpio.erp.common.equipment.entity;

import com.mxpio.erp.common.jpa.policy.ResCodeGeneratorPolicy;
import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.jpa.policy.impl.UUIDPolicy;
import com.mxpioframework.security.annotation.Dict;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 知识库-标签 MB_ERP_EQUIPMENT_KNOWLEDGE_TAG
 *
 * @author Cheng
 * @date 2023-12-23
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_EQUIPMENT_KNOWLEDGE_TAG")
@Schema(description="知识库-标签")
public class EquipmentKnowledgeTag extends BaseEntity {

private static final long serialVersionUID=1L;


    @Id
    @Generator(policy = UUIDPolicy.class)
    @Column(name = "ID_")
    @Schema(description = "主键")
    private String id;

    /**
     * TIT+五位递增流水号
     */
    @Column(name = "TAG_CODE_", length = 64)
    @Generator(policy = ResCodeGeneratorPolicy.class)
    @Schema(description = "标签编码")
    private String tagCode;

    @Column(name = "TAG_NAME_", length = 64)
    @Schema(description = "标签名称")
    private String tagName;

    @Column(name = "TAG_DESC_")
    @Schema(description = "标签描述")
    private String tagDesc;

    /**
     * 标签类型：字典值1、维修、2保养
     */
    @Column(name = "TAG_TYPE_", length = 32)
    @Schema(description = "标签类型")
    @Dict(dicCode = "ERP_EQUIPMENT_TAG_TYPE")
    private String tagType;

    /**
     * 使用状态：字典值：使用中、已作废、新增时默认使用中
     */
    @Column(name = "TAG_STATUS_", length = 32)
    @Schema(description = "使用状态")
    @Dict(dicCode = "ERP_EQUIPMENT_TAG_STAT")
    private String tagStatus;

    @Column(name = "REMARK_")
    @Schema(description = "备注")
    private String remark;

}
